package com.ywgt.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FastDFSFile {
    @ApiModelProperty(value = "文件名称")
    private String name;
    @ApiModelProperty(value = "文件作者")
    private String author;
    @ApiModelProperty(value = "文件内容")
    private byte[] content;
    @ApiModelProperty(value = "文件后缀名")
    private String extension;
    @ApiModelProperty("文件摘要")
    private String md5;

    public FastDFSFile(String name, byte[] content, String extension) {
        this.name = name;
        this.content = content;
        this.extension = extension;
    }
}
